package com.senic.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Scenery entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "scenery", catalog = "scenic")
public class Scenery implements java.io.Serializable {

	// Fields

	private Integer sceneryId;
	private String sceneryName;
	private String province;
	private String city;
	private Integer level;
	private String imageUrl;
	private String description;
	private Integer price;
	private String creditCardNum;

	// Constructors

	/** default constructor */
	public Scenery() {
	}

	/** minimal constructor */
	public Scenery(String sceneryName) {
		this.sceneryName = sceneryName;
	}

	/** full constructor */
	public Scenery(String sceneryName, String province, String city,
			Integer level, String imageUrl, String description, Integer price,
			String creditCardNum) {
		this.sceneryName = sceneryName;
		this.province = province;
		this.city = city;
		this.level = level;
		this.imageUrl = imageUrl;
		this.description = description;
		this.price = price;
		this.creditCardNum = creditCardNum;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "sceneryID", unique = true, nullable = false)
	public Integer getSceneryId() {
		return this.sceneryId;
	}

	public void setSceneryId(Integer sceneryId) {
		this.sceneryId = sceneryId;
	}

	@Column(name = "sceneryName", nullable = false, length = 40)
	public String getSceneryName() {
		return this.sceneryName;
	}

	public void setSceneryName(String sceneryName) {
		this.sceneryName = sceneryName;
	}

	@Column(name = "province", length = 20)
	public String getProvince() {
		return this.province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Column(name = "city", length = 20)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	@Column(name = "level")
	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	@Column(name = "imageURL", length = 80)
	public String getImageUrl() {
		return this.imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	@Column(name = "description", length = 1000)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "price")
	public Integer getPrice() {
		return this.price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	@Column(name = "creditCardNum", length = 30)
	public String getCreditCardNum() {
		return this.creditCardNum;
	}

	public void setCreditCardNum(String creditCardNum) {
		this.creditCardNum = creditCardNum;
	}

}